﻿<?xml version="1.0" encoding="utf-8" ?>
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2" default-lazy="true" assembly="Mani.Patient.Business" namespace="Mani.Patient.Business.Domain.Entity">
  <class name="Visit" table="Visits">
    
    <id name="Id" type="Int32" unsaved-value="0">
      <column name="ID" sql-type="int" not-null="true" unique="true" index="visit_id" />
      <generator class="native" />
    </id>

    <many-to-one name="Patient" class="Patient" column="PatientId" />
    <property name="Description" column="Description" type="String" not-null="true" length="4000" />
    <property name="VisitDate" column="VisitDate" type="DateTime" />
  </class>
</hibernate-mapping>